package com.wingsfrog.puzzle.service;

import com.wingsfrog.puzzle.modules.entity.User;

public interface UserService {
    Boolean notExist(String openid); // 根据openId检查用户是否不存在

    public User get(Integer userId);
    public User getByOpenId(String openId);
    public void saveUser(User user);
    public void saveUserInfo(String openId, String brif, Integer yearsold, Byte sex) throws Exception;
    public void updateLoginTime(String openId);
    public Integer getIdByOpenId(String openId);
    public void updateCoins(int id, Integer coins);
}
